package com.whisper.application.app.web.controller.front;

import com.whisper.application.service.domain.VrMessage;
import com.whisper.application.service.domain.vo.VrMessageVo;
import com.whisper.application.service.service.IVrMessageService;
import com.whisper.common.annotation.PageQuery;
import com.whisper.common.core.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 留言Controller
 * 
 * @author whisper
 * @date 2024-01-07
 */
@RestController
@RequestMapping("/front/message")
public class FrontMessageController extends BaseController
{
    @Autowired
    private IVrMessageService vrMessageService;

    /**
     * 查询留言列表
     */
    @PageQuery
    @GetMapping("/list")
    public List<VrMessageVo> list(VrMessage vrMessage)
    {
        vrMessage.setStatus("1");
        return vrMessageService.selectVrMessageVoList(vrMessage);
    }

}
